//action 传参
const action = (value) => {
  return {
    type: 'TYPE',
    value
  }
}
const addAction = (list) => {
  return {
    type: 'ADD',
    list
  }
}

const asyncGetList = () => {
  //异步请求必须写成高阶函数，return函数里边写异步操作
  return () => {
    setTimeout(() => {
      console.log('异步操作')
    }, 2000)
  }

}

export {
  action,
  addAction,
  asyncGetList
}